package jmine.tec.datadigester.positional;

import java.io.BufferedReader;
import java.nio.charset.Charset;

import jmine.tec.datadigester.positional.AbstractPositionalDriver;
import br.com.maps.datadigester.shared.bean.TestBean;

/**
 * @author israel.crisanto
 */
public class PositionalWrongExampleDriver extends AbstractPositionalDriver<TestBean> {

    @Override
    protected TestBean getBean(BufferedReader reader) throws Exception {
        TestBean bean = new TestBean();

        this.populateEntityFromLine(bean, reader.readLine());

        return bean;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected String getFileCharset() {
        // NUNCA USAR CHARSET DEFAULT
        return Charset.defaultCharset().name();
    }

}
